# !/usr/bin/env python
# -*- coding: utf-8 -*-
import random


# 获取树node节点
def node_arr(count, scale):
    tmp_arr = []
    while count > 0:
        val = random.randint(0, scale)
        if val in tmp_arr:
            continue
        tmp_arr.append(val)
        count -= 1
    return tmp_arr
